<?php
if(!isset($_SESSION)){session_start();};
require_once("../core.php");
GETMODULE($_GET['r'],$_GET['f']);
?>
<!DOCTYPE html>
<html>
<head>
	<?php echo DESCRIPTION;?>
  <?php echo KEYWORD;?>
  <meta name="author" content="PosterThailand.com" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title><?php echo WEB_TITLE;?></title>
	<script type="text/javascript" src="<?php echo WEB_URL;?>/javascripts/jquery.min.js"></script>
 
  <!-- StyleSheet Plugin-->
  <link rel="stylesheet" href="<?php echo WEB_URL;?>/stylesheets/sliding_form.css" type="text/css" media="screen"/>
  <link rel="stylesheet" href="<?php echo WEB_URL;?>/plugins/jwysiwyg/jquery.wysiwyg.css" type="text/css" />

  <!-- Script Plugin -->
  <script type="text/javascript" src="<?php echo WEB_URL;?>/javascripts/dump.js"></script>
  <script type="text/javascript" src="<?php echo WEB_URL;?>/javascripts/sliding_form.js"></script>
  <script type="text/javascript" src="<?php echo WEB_URL;?>/plugins/jwysiwyg/jquery.wysiwyg.js"></script>

	<script type="text/javascript">

		$(document).ready(function(){
			$('#fan,#guest').wysiwyg({
				rmUnusedControls: true,
		    controls: {
					bold          : { visible : true },
					italic        : { visible : true },
					underline     : { visible : true },
					strikeThrough : { visible : true },
					
					justifyLeft   : { visible : true },
					justifyCenter : { visible : true },
					justifyRight  : { visible : true },
					justifyFull   : { visible : true },

					indent  : { visible : true },
					outdent : { visible : true },

					subscript   : { visible : true },
					superscript : { visible : true },
					
					undo : { visible : true },
					redo : { visible : true },
					
					insertOrderedList    : { visible : true },
					insertUnorderedList  : { visible : true },
					insertHorizontalRule : { visible : true },

					h4: {
						visible: true,
						className: 'h4',
						command: ($.browser.msie || $.browser.safari) ? 'formatBlock' : 'heading',
						arguments: ($.browser.msie || $.browser.safari) ? '<h4>' : 'h4',
						tags: ['h4'],
						tooltip: 'Header 4'
					},
					h5: {
						visible: true,
						className: 'h5',
						command: ($.browser.msie || $.browser.safari) ? 'formatBlock' : 'heading',
						arguments: ($.browser.msie || $.browser.safari) ? '<h5>' : 'h5',
						tags: ['h5'],
						tooltip: 'Header 5'
					},
					h6: {
						visible: true,
						className: 'h6',
						command: ($.browser.msie || $.browser.safari) ? 'formatBlock' : 'heading',
						arguments: ($.browser.msie || $.browser.safari) ? '<h6>' : 'h6',
						tags: ['h6'],
						tooltip: 'Header 6'
					},
					html  : { visible: true },
					removeFormat : { visible : true }
				}
		  });
		  
		  $('div.wysiwyg').css({'width':'470px','margin-left':'-11px'});
		});

	</script>

	<style type="text/css">
		.add_tab_to_page{
			bottom: 0; position: fixed; right: 0;
			width: 100%;
		}
		.add_tab_to_page a {
			text-decoration: none;
			color: #666;	
		}
		.add_tab_to_page a:first-child{
			float: right;
		}
		.add_tab_to_page a:last-child{
			float: left;
		}
	</style>
</head>

<body>
	<?php //require_once('header.php');?>
  <?php include_once($MODPATHFILE);?>
	<?php //require_once('footer.php'); ?>
</body>
</html>